Skip to content

Move the default tag system into the datamodel#673

Closed
WilliamJamieson wants to merge 23 commits into
spacetelescope:mainfrom
WilliamJamieson:refactor/remove_stnode_tag_pattern
Closed

Move the default tag system into the datamodel#673
WilliamJamieson wants to merge 23 commits into
spacetelescope:mainfrom
WilliamJamieson:refactor/remove_stnode_tag_pattern

Conversation

@WilliamJamieson
Copy link
Copy Markdown
Contributor

@WilliamJamieson WilliamJamieson commented May 6, 2026

If/when we remove dynamically generated node classes, the node classes will no longer be able to determine their own default tags (since it will be generic to all tags). This PR moves the default tag handling from the node class into the data model so that the nodes can be made generic with respect to the actual tag involved.

Note this depends on #660, #663, #664, #669, and #670

Tasks

  • Update or add relevant roman_datamodels tests.
  • Update relevant docstrings and / or docs/ page.
  • Does this PR change any API used downstream? (If not, label with no-changelog-entry-needed.)
News fragment change types:
  • changes/<PR#>.feature.rst: new feature
  • changes/<PR#>.bugfix.rst: fixes an issue
  • changes/<PR#>.doc.rst: documentation change
  • changes/<PR#>.removal.rst: deprecation or removal of public API
  • changes/<PR#>.misc.rst: infrastructure or miscellaneous change

@codecov
Copy link
Copy Markdown

codecov Bot commented May 6, 2026

Codecov Report

❌ Patch coverage is 97.78912% with 13 lines in your changes missing coverage. Please review.
✅ Project coverage is 95.25%. Comparing base (087a60d) to head (34ab6f1).
⚠️ Report is 257 commits behind head on main.

Files with missing lines Patch % Lines
src/roman_datamodels/_stnode/_converters.py 75.00% 3 Missing ⚠️
src/roman_datamodels/datamodels/_core.py 91.17% 3 Missing ⚠️
src/roman_datamodels/datamodels/_datamodels.py 96.70% 3 Missing ⚠️
src/roman_datamodels/_stnode/_registry.py 66.66% 1 Missing ⚠️
src/roman_datamodels/_stnode/_schema.py 98.50% 1 Missing ⚠️
src/roman_datamodels/_stnode/_stnode.py 92.85% 1 Missing ⚠️
src/roman_datamodels/_stnode/_uri.py 96.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #673      +/-   ##
==========================================
- Coverage   97.56%   95.25%   -2.31%     
==========================================
  Files          30       27       -3     
  Lines        2788     2675     -113     
==========================================
- Hits         2720     2548     -172     
- Misses         68      127      +59     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@WilliamJamieson
Copy link
Copy Markdown
Contributor Author

We are not planning on making any changes at this time.

@WilliamJamieson WilliamJamieson deleted the refactor/remove_stnode_tag_pattern branch May 7, 2026 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant